package com.whut.monitor.util;

import com.whut.monitor.netty.handler.ServerInboundHandler;
import java.util.HashMap;
import java.util.Map;

/**
 * @author WSJ
 * 2017/9/19
 * 传感器故障检测算法
 */
public class SensorUtil {


    public static void  sensorDiagnosis90FBG(){
        // 真实数据-传感器诊断90个FBG
         mix90FBZhu(ServerInboundHandler.SFTMap, ServerInboundHandler.currentFBGDiagnosisMap);
        if (ServerInboundHandler.count == 1) {
//            initSimulateValues(ServerInboundHandler.simulateValues, ServerInboundHandler.constantCntFBG);
//            simulateValveToCurrentFBGMap(ServerInboundHandler.count, ServerInboundHandler.simulateValues, ServerInboundHandler.currentFBGDiagnosisMap, ServerInboundHandler.preFBGDiagnosisMap);
            // 默认正常
            ServerInboundHandler.preFBGDiagnosisMap.putAll(ServerInboundHandler.currentFBGDiagnosisMap);
            // preFBGDiagnosisMap == 90 防止第一次越界
            if (ServerInboundHandler.preFBGDiagnosisMap.size() == 90){
                ServerInboundHandler.count++;
                for (int i = 1; i <= 90; i++) {
                    ServerInboundHandler.constantCntFBG.put(i, 0);
                }
            }
        } else {
//            simulateValveToCurrentFBGMap(ServerInboundHandler.count, ServerInboundHandler.simulateValues, ServerInboundHandler.currentFBGDiagnosisMap, ServerInboundHandler.preFBGDiagnosisMap);
            ServerInboundHandler.showFBGDiagnosisContent = SensorUtil.msgToSensor(ServerInboundHandler.currentFBGDiagnosisMap, ServerInboundHandler.preFBGDiagnosisMap);
            ServerInboundHandler.preFBGDiagnosisMap.clear();
            ServerInboundHandler.preFBGDiagnosisMap.putAll(ServerInboundHandler.currentFBGDiagnosisMap);
            ServerInboundHandler.count++;
        }
        if (ServerInboundHandler.count == 10) {
            ServerInboundHandler.count = 1;
        }
        System.out.println("[poi]showFBGDiagnosisContent: " + ServerInboundHandler.showFBGDiagnosisContent);
    }

    public static void initSimulateValues(Double[][] simulateValues, HashMap<Integer, Integer> constantCntFBG) {
        int standardValue = 25;
        double plus = 0.0;

        //60组数据，每组90个节点
        for (int x = 0; x < 60; x++) {
            for (int y = 0; y < 90; y++) {
                simulateValues[x][y] = standardValue + plus;
            }
            plus += 0.1;
        }

        //第一个节点增添一个跳变值，第二个节点增添一个空值，第三个节点设置为恒值，其他不变
        simulateValues[2][0] = 35.0;
        simulateValues[4][1] = 0.0;

        simulateValues[1][12] = 0.0;
        simulateValues[2][14] = 0.0;
        simulateValues[4][43] = 40.0;
        simulateValues[4][56] = 40.0;
        simulateValues[6][85] = 0.0;
        simulateValues[7][88] = 0.0;
        simulateValues[9][55] = 40.0;

        simulateValues[6][80] = 0.0;
        for (int i = 0; i < 60; i++) {
            simulateValues[i][2] = 25.0;
        }
        for (int i = 1; i <= 90; i++) {
            constantCntFBG.put(i, 0);
        }
    }

    public static void simulateValveToCurrentFBGMap(int count, Double[][] simulateValues, HashMap<Integer, Double> currentFBGDiagnosisMap, HashMap<Integer, Double> preFBGDiagnosisMap) {
        for (int i = 0; i < 90; i++) {
            if (count == 1){
                preFBGDiagnosisMap.put(i + 1, simulateValues[count - 1][i]);
            }
            currentFBGDiagnosisMap.put(i + 1, simulateValues[count - 1][i]);
        }
    }


    // HashMap中，键对应90个传感器，值对应该传感器的30个数据
    public static String msgToSensor(HashMap<Integer,Double> hashMap , HashMap<Integer,Double> cacheMap){
        //List<Boolean> result = new ArrayList<Boolean>();
        StringBuilder builder = new StringBuilder();
        Double value = 0.0;
        Double cache = 0.0;
//        boolean three = true;
        int sensorCnt = 90;
        for (int i = 1; i <= sensorCnt ; i ++){
            value = hashMap.get(i);
//            System.out.println("value:" + value);
            cache = cacheMap.get(i);
//            System.out.println("cacha:" + cache);
            //三种判断
            //第一种：缺失
            boolean one = methodOne(value);
            //第二种：跳变,与前一个数值相差超过3
            boolean two = methodTwo(value, cache);
//            //第三种：横值
            boolean three = methodThree(value, cache, i);
            if (one){
                builder.append("1");
            }else if(two) {
                builder.append("2");
            }else if (three) {
                builder.append("3");
            }else {
                builder.append("0");
            }
        }
        return builder.toString();
    }

    private static boolean methodOne(Double value) {
        return Math.abs(value) <= 0.001;
    }

    private static boolean methodTwo(Double value , Double cache) {
        return Math.abs(value - cache) > 3 && cache != 0.0;
    }

    private static boolean methodThree(Double value , Double cache, int i) {
        //两个double数差值在0.0001内，即认为两数值相等
        double delta = 0.0001;
        if (Math.abs(value-cache) <= delta){
            int num  = ServerInboundHandler.constantCntFBG.get(i);
//            System.out.println("i: " + i + " -num: " + num);
            ServerInboundHandler.constantCntFBG.put(i,num + 1);
        }else {
            ServerInboundHandler.constantCntFBG.put(i,0);
        }
        //连续20次数值相同
        return ServerInboundHandler.constantCntFBG.get(i) > 20;
    }


    /**
     * 混合90个FBG主轴点
     * written by WeiShiJie
     */
    public static void mix90FBZhu(Map<String, String> SFTMap, Map<Integer, Double> currentFBGDialogMap) {
        // 防止越界
        if (SFTMap.size() > 89)
        {
            //通道零15个节点
            String value = SFTMap.get("001-SFT00-00");
//        System.out.println("通道0的0节点" + value);
            currentFBGDialogMap.put(1, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-01");
//        System.out.println("通道0的1节点" + value);
            currentFBGDialogMap.put(2, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-02");
//        System.out.println("通道0的2节点" + value);
            currentFBGDialogMap.put(3, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-03");
            currentFBGDialogMap.put(4, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-04");
            currentFBGDialogMap.put(5, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-05");
            currentFBGDialogMap.put(6, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-06");
            currentFBGDialogMap.put(7, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-07");
            currentFBGDialogMap.put(8, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-08");
            currentFBGDialogMap.put(9, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-09");
            currentFBGDialogMap.put(10, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-10");
            currentFBGDialogMap.put(11, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-11");
            currentFBGDialogMap.put(12, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-12");
            currentFBGDialogMap.put(13, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-13");
            currentFBGDialogMap.put(14, Double.valueOf(value));
            value = SFTMap.get("001-SFT00-14");
            currentFBGDialogMap.put(15, Double.valueOf(value));
            //通道一8个节点
            value = SFTMap.get("001-SFT01-00");
            currentFBGDialogMap.put(16, Double.valueOf(value));
            value = SFTMap.get("001-SFT01-01");
            currentFBGDialogMap.put(17, Double.valueOf(value));
            value = SFTMap.get("001-SFT01-02");
            currentFBGDialogMap.put(18, Double.valueOf(value));
            value = SFTMap.get("001-SFT01-03");
            currentFBGDialogMap.put(19, Double.valueOf(value));
            value = SFTMap.get("001-SFT01-04");
            currentFBGDialogMap.put(20, Double.valueOf(value));
            value = SFTMap.get("001-SFT01-05");
            currentFBGDialogMap.put(21, Double.valueOf(value));
            value = SFTMap.get("001-SFT01-06");
            currentFBGDialogMap.put(22, Double.valueOf(value));
            value = SFTMap.get("001-SFT01-07");
            currentFBGDialogMap.put(23, Double.valueOf(value));
            //通道二7个节点
            value = SFTMap.get("001-SFT02-00");
            currentFBGDialogMap.put(24, Double.valueOf(value));
            value = SFTMap.get("001-SFT02-01");
            currentFBGDialogMap.put(25, Double.valueOf(value));
            value = SFTMap.get("001-SFT02-02");
            currentFBGDialogMap.put(26, Double.valueOf(value));
            value = SFTMap.get("001-SFT02-03");
            currentFBGDialogMap.put(27, Double.valueOf(value));
            value = SFTMap.get("001-SFT02-04");
            currentFBGDialogMap.put(28, Double.valueOf(value));
            value = SFTMap.get("001-SFT02-05");
            currentFBGDialogMap.put(29, Double.valueOf(value));
            value = SFTMap.get("001-SFT02-06");
            currentFBGDialogMap.put(30, Double.valueOf(value));
            //通道三15个节点
            value = SFTMap.get("001-SFT03-00");
            currentFBGDialogMap.put(31, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-01");
            currentFBGDialogMap.put(32, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-02");
            currentFBGDialogMap.put(33, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-03");
            currentFBGDialogMap.put(34, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-04");
            currentFBGDialogMap.put(35, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-05");
            currentFBGDialogMap.put(36, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-06");
            currentFBGDialogMap.put(37, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-07");
            currentFBGDialogMap.put(38, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-08");
            currentFBGDialogMap.put(39, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-09");
            currentFBGDialogMap.put(40, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-10");
            currentFBGDialogMap.put(41, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-11");
            currentFBGDialogMap.put(42, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-12");
            currentFBGDialogMap.put(43, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-13");
            currentFBGDialogMap.put(44, Double.valueOf(value));
            value = SFTMap.get("001-SFT03-14");
            currentFBGDialogMap.put(45, Double.valueOf(value));
            //通道四15个节点
            value = SFTMap.get("001-SFT04-00");
            currentFBGDialogMap.put(46, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-01");
            currentFBGDialogMap.put(47, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-02");
            currentFBGDialogMap.put(48, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-03");
            currentFBGDialogMap.put(49, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-04");
            currentFBGDialogMap.put(50, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-05");
            currentFBGDialogMap.put(51, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-06");
            currentFBGDialogMap.put(52, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-07");
            currentFBGDialogMap.put(53, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-08");
            currentFBGDialogMap.put(54, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-09");
            currentFBGDialogMap.put(55, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-10");
            currentFBGDialogMap.put(56, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-11");
            currentFBGDialogMap.put(57, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-12");
            currentFBGDialogMap.put(58, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-13");
            currentFBGDialogMap.put(59, Double.valueOf(value));
            value = SFTMap.get("001-SFT04-14");
            currentFBGDialogMap.put(60, Double.valueOf(value));
            //通道五15个节点
            value = SFTMap.get("001-SFT05-00");
            currentFBGDialogMap.put(61, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-01");
            currentFBGDialogMap.put(62, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-02");
            currentFBGDialogMap.put(63, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-03");
            currentFBGDialogMap.put(64, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-04");
            currentFBGDialogMap.put(65, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-05");
            currentFBGDialogMap.put(66, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-06");
            currentFBGDialogMap.put(67, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-07");
            currentFBGDialogMap.put(68, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-08");
            currentFBGDialogMap.put(69, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-09");
            currentFBGDialogMap.put(70, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-10");
            currentFBGDialogMap.put(71, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-11");
            currentFBGDialogMap.put(72, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-12");
            currentFBGDialogMap.put(73, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-13");
            currentFBGDialogMap.put(74, Double.valueOf(value));
            value = SFTMap.get("001-SFT05-14");
            currentFBGDialogMap.put(75, Double.valueOf(value));
            //通道六7个节点
            value = SFTMap.get("001-SFT06-00");
            currentFBGDialogMap.put(76, Double.valueOf(value));
            value = SFTMap.get("001-SFT06-01");
            currentFBGDialogMap.put(77, Double.valueOf(value));
            value = SFTMap.get("001-SFT06-02");
            currentFBGDialogMap.put(78, Double.valueOf(value));
            value = SFTMap.get("001-SFT06-03");
            currentFBGDialogMap.put(79, Double.valueOf(value));
            value = SFTMap.get("001-SFT06-04");
            currentFBGDialogMap.put(80, Double.valueOf(value));
            value = SFTMap.get("001-SFT06-05");
            currentFBGDialogMap.put(81, Double.valueOf(value));
            value = SFTMap.get("001-SFT06-06");
            currentFBGDialogMap.put(82, Double.valueOf(value));
            //通道七8个节点
            value = SFTMap.get("001-SFT07-00");
            currentFBGDialogMap.put(83, Double.valueOf(value));
            value = SFTMap.get("001-SFT07-01");
            currentFBGDialogMap.put(84, Double.valueOf(value));
            value = SFTMap.get("001-SFT07-02");
            currentFBGDialogMap.put(85, Double.valueOf(value));
            value = SFTMap.get("001-SFT07-03");
            currentFBGDialogMap.put(86, Double.valueOf(value));
            value = SFTMap.get("001-SFT07-04");
            currentFBGDialogMap.put(87, Double.valueOf(value));
            value = SFTMap.get("001-SFT07-05");
            currentFBGDialogMap.put(88, Double.valueOf(value));
            value = SFTMap.get("001-SFT07-06");
            currentFBGDialogMap.put(89, Double.valueOf(value));
            value = SFTMap.get("001-SFT07-07");
            currentFBGDialogMap.put(90, Double.valueOf(value));
        }
    }


    // 虚拟机床使用 将SDT值加到对应的SFT值上
    public static void virtualCNCDataSDTaddSFT(Map<String, String> SDTMap, Map<String, String> SFTMap) {
        if (SFTMap.size() > 50 && SDTMap.size() > 50) {
            //SDT00
            String value = SFTMap.get("001-SFT00-00");
            SFTMap.put("001-SFT00-00", value + "/" + SDTMap.get("001-SDT00-00"));
            value = SFTMap.get("001-SFT00-02");
            SFTMap.put("001-SFT00-02", value + "/" + SDTMap.get("001-SDT00-01"));
            value = SFTMap.get("001-SFT00-04");
            SFTMap.put("001-SFT00-04", value + "/" + SDTMap.get("001-SDT00-02"));
            value = SFTMap.get("001-SFT00-06");
            SFTMap.put("001-SFT00-06", value + "/" + SDTMap.get("001-SDT00-03"));
            value = SFTMap.get("001-SFT00-08");
            SFTMap.put("001-SFT00-08", value + "/" + SDTMap.get("001-SDT00-04"));
            value = SFTMap.get("001-SFT00-10");
            SFTMap.put("001-SFT00-10", value + "/" + SDTMap.get("001-SDT00-05"));
            value = SFTMap.get("001-SFT00-12");
            SFTMap.put("001-SFT00-12", value + "/" + SDTMap.get("001-SDT00-06"));
            value = SFTMap.get("001-SFT00-14");
            SFTMap.put("001-SFT00-14", value + "/" + SDTMap.get("001-SDT00-07"));
            //SDT03
            value = SFTMap.get("001-SFT03-00");
            SFTMap.put("001-SFT03-00", value + "/" + SDTMap.get("001-SDT03-00"));
            value = SFTMap.get("001-SFT03-02");
            SFTMap.put("001-SFT03-02", value + "/" + SDTMap.get("001-SDT03-01"));
            value = SFTMap.get("001-SFT03-04");
            SFTMap.put("001-SFT03-04", value + "/" + SDTMap.get("001-SDT03-02"));
            value = SFTMap.get("001-SFT03-06");
            SFTMap.put("001-SFT03-06", value + "/" + SDTMap.get("001-SDT03-03"));
            value = SFTMap.get("001-SFT03-08");
            SFTMap.put("001-SFT03-08", value + "/" + SDTMap.get("001-SDT03-04"));
            value = SFTMap.get("001-SFT03-10");
            SFTMap.put("001-SFT03-10", value + "/" + SDTMap.get("001-SDT03-05"));
            value = SFTMap.get("001-SFT03-12");
            SFTMap.put("001-SFT03-12", value + "/" + SDTMap.get("001-SDT03-06"));
            value = SFTMap.get("001-SFT03-14");
            SFTMap.put("001-SFT03-14", value + "/" + SDTMap.get("001-SDT03-07"));
            //SDT04
            value = SFTMap.get("001-SFT04-00");
            SFTMap.put("001-SFT04-00", value + "/" + SDTMap.get("001-SDT04-00"));
            value = SFTMap.get("001-SFT04-02");
            SFTMap.put("001-SFT04-02", value + "/" + SDTMap.get("001-SDT04-01"));
            value = SFTMap.get("001-SFT04-04");
            SFTMap.put("001-SFT04-04", value + "/" + SDTMap.get("001-SDT04-02"));
            value = SFTMap.get("001-SFT04-06");
            SFTMap.put("001-SFT04-06", value + "/" + SDTMap.get("001-SDT04-03"));
            value = SFTMap.get("001-SFT04-08");
            SFTMap.put("001-SFT04-08", value + "/" + SDTMap.get("001-SDT04-04"));
            value = SFTMap.get("001-SFT04-10");
            SFTMap.put("001-SFT04-10", value + "/" + SDTMap.get("001-SDT04-05"));
            value = SFTMap.get("001-SFT04-12");
            SFTMap.put("001-SFT04-12", value + "/" + SDTMap.get("001-SDT04-06"));
            value = SFTMap.get("001-SFT04-14");
            SFTMap.put("001-SFT04-14", value + "/" + SDTMap.get("001-SDT04-07"));
            //SDT05
            value = SFTMap.get("001-SFT05-00");
            SFTMap.put("001-SFT05-00", value + "/" + SDTMap.get("001-SDT05-00"));
            value = SFTMap.get("001-SFT05-02");
            SFTMap.put("001-SFT05-02", value + "/" + SDTMap.get("001-SDT05-01"));
            value = SFTMap.get("001-SFT05-04");
            SFTMap.put("001-SFT05-04", value + "/" + SDTMap.get("001-SDT05-02"));
            value = SFTMap.get("001-SFT05-06");
            SFTMap.put("001-SFT05-06", value + "/" + SDTMap.get("001-SDT05-03"));
            value = SFTMap.get("001-SFT05-08");
            SFTMap.put("001-SFT05-08", value + "/" + SDTMap.get("001-SDT05-04"));
            value = SFTMap.get("001-SFT05-10");
            SFTMap.put("001-SFT05-10", value + "/" + SDTMap.get("001-SDT05-05"));
            value = SFTMap.get("001-SFT05-12");
            SFTMap.put("001-SFT05-12", value + "/" + SDTMap.get("001-SDT05-06"));
            value = SFTMap.get("001-SFT05-14");
            SFTMap.put("001-SFT05-14", value + "/" + SDTMap.get("001-SDT05-07"));
            //SDT01
            value = SFTMap.get("001-SFT06-06");
            SFTMap.put("001-SFT06-06", value + "/" + SDTMap.get("001-SDT01-00"));
            value = SFTMap.get("001-SFT06-04");
            SFTMap.put("001-SFT06-04", value + "/" + SDTMap.get("001-SDT01-01"));
            value = SFTMap.get("001-SFT06-02");
            SFTMap.put("001-SFT06-02", value + "/" + SDTMap.get("001-SDT01-02"));
            value = SFTMap.get("001-SFT06-00");
            SFTMap.put("001-SFT06-00", value + "/" + SDTMap.get("001-SDT01-03"));
            value = SFTMap.get("001-SFT01-01");
            SFTMap.put("001-SFT01-01", value + "/" + SDTMap.get("001-SDT01-04"));
            value = SFTMap.get("001-SFT01-03");
            SFTMap.put("001-SFT01-03", value + "/" + SDTMap.get("001-SDT01-05"));
            value = SFTMap.get("001-SFT01-05");
            SFTMap.put("001-SFT01-05", value + "/" + SDTMap.get("001-SDT01-06"));
            value = SFTMap.get("001-SFT01-07");
            SFTMap.put("001-SFT01-07", value + "/" + SDTMap.get("001-SDT01-07"));
            //SDT02
            value = SFTMap.get("001-SFT07-07");
            SFTMap.put("001-SFT07-07", value + "/" + SDTMap.get("001-SDT02-00"));
            value = SFTMap.get("001-SFT07-05");
            SFTMap.put("001-SFT07-05", value + "/" + SDTMap.get("001-SDT02-01"));
            value = SFTMap.get("001-SFT07-03");
            SFTMap.put("001-SFT07-03", value + "/" + SDTMap.get("001-SDT02-02"));
            value = SFTMap.get("001-SFT07-01");
            SFTMap.put("001-SFT07-01", value + "/" + SDTMap.get("001-SDT02-03"));
            value = SFTMap.get("001-SFT02-00");
            SFTMap.put("001-SFT02-00", value + "/" + SDTMap.get("001-SDT02-04"));
            value = SFTMap.get("001-SFT02-02");
            SFTMap.put("001-SFT02-02", value + "/" + SDTMap.get("001-SDT02-05"));
            value = SFTMap.get("001-SFT02-04");
            SFTMap.put("001-SFT02-04", value + "/" + SDTMap.get("001-SDT02-06"));
            value = SFTMap.get("001-SFT02-06");
            SFTMap.put("001-SFT02-06", value + "/" + SDTMap.get("001-SDT02-07"));
            //SDT06
            value = SFTMap.get("001-SFT10-03");
            SFTMap.put("001-SFT10-03", value + "/" + SDTMap.get("001-SDT06-00"));
            value = SFTMap.get("001-SFT10-00");
            SFTMap.put("001-SFT10-00", value + "/" + SDTMap.get("001-SDT06-01"));
            value = SFTMap.get("001-SFT10-01");
            SFTMap.put("001-SFT10-01", value + "/" + SDTMap.get("001-SDT06-02"));
            value = SFTMap.get("001-SFT10-02");
            SFTMap.put("001-SFT10-02", value + "/" + SDTMap.get("001-SDT06-03"));
        }
    }


}


